package com.nbsaas.boot.product.rest.convert;

import com.nbsaas.boot.product.data.entity.ProductSpecificationValue;
import com.nbsaas.boot.product.api.domain.simple.ProductSpecificationValueSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商品规格值-列表对象转换器
*/

public class ProductSpecificationValueSimpleConvert implements Converter<ProductSpecificationValueSimple, ProductSpecificationValue> {




@Override
public ProductSpecificationValueSimple convert(ProductSpecificationValue source) {
    ProductSpecificationValueSimple result = new ProductSpecificationValueSimple();

                result.setSpecificationId(source.getSpecificationId());
                result.setImage(source.getImage());
                result.setNote(source.getNote());
                result.setCode(source.getCode());
                result.setProductId(source.getProductId());
                result.setColor(source.getColor());
                result.setDescription(source.getDescription());
                result.setSort(source.getSort());
                result.setAddDate(source.getAddDate());
                result.setEnabled(source.getEnabled());
                result.setId(source.getId());
                result.setValue(source.getValue());
                result.setLastDate(source.getLastDate());


    return result;
}

}